package cn.ainit.sys.config.thread;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TaskController {
	TaskService taskService;
	
	@Resource
	public void setTaskService(TaskService taskService) {
		this.taskService = taskService;
	}
	
	/***
	 * 任务执行监控存储过程
	 * @author Xuzq
	 * @date 2014-7-9 上午10:36:27
	 */
	public void startRW(){
		try {
			taskService.startRW();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
